package fr.insta.reverse.uml.bean;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

@Entity
@Table(name = "guide",
		catalog = "reverseUml",
		uniqueConstraints = @UniqueConstraint(columnNames = { "gui_lib", "gui_prj" }))
public class Guide implements java.io.Serializable
{

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "gui_id", unique = true, nullable = false)
	private int id;

	@Column(name = "gui_lib", length = 100)
	private String lib;

	@Column(name = "gui_lien", length = 100)
	private String lien;

	@Column(name = "gui_auteur")
	private int auteur;

	@Column(name = "gui_prj")
	private int proj;

	public Guide()
	{
	}

	public Guide(String lib, String lien, int auteur, int proj)
	{
		this.lib = lib;
		this.lien = lien;
		this.auteur = auteur;
		this.proj = proj;
	}

	public Guide(int id, String lib, String lien, int auteur, int proj)
	{
		this.id = id;
		this.lib = lib;
		this.lien = lien;
		this.auteur = auteur;
		this.proj = proj;
	}

	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public String getLib()
	{
		return lib;
	}

	public void setLib(String lib)
	{
		this.lib = lib;
	}

	public String getLien()
	{
		return lien;
	}

	public void setLien(String lien)
	{
		this.lien = lien;
	}

	public int getAuteur()
	{
		return auteur;
	}

	public void setAuteur(int auteur)
	{
		this.auteur = auteur;
	}

	public int getProj()
	{
		return proj;
	}

	public void setProj(int proj)
	{
		this.proj = proj;
	}
}
